#entrance class, manages the creep entrances
class entrance_c:
    def __init__(self, x, y, playerNumber, entranceAnim, direction=1):
        self.x=x
        self.y=y
        self.playerNumber = playerNumber
        
        self.spawnTimer = 0
        self.open = False
        self.frame = 0
        self.isLastFrame = 0
        self.frameDelay = 0

        self.anim = entranceAnim
        self.direction = direction

    #this doesn't need to be here, could just return then co-ordinates
    def getSpawnLoc(self):
        return [self.x, self.y]

    def draw(self, ox, oy):
        self.frame, self.isLastFrame, self.frameDelay = self.anim.draw(self.x-ox, self.y-oy, self.frame, True, True, self.frameDelay)
